import request from '@/utils/request'

// 查询往来单位明细列表
export function listRelateUnitDetail(query) {
  return request({
    url: '/base/relateUnitDetail/list',
    method: 'get',
    params: query
  })
}

// 查询往来单位明细详细
export function getRelateUnitDetail(id) {
  return request({
    url: '/base/relateUnitDetail/' + id,
    method: 'get'
  })
}

// 新增往来单位明细
export function addRelateUnitDetail(data) {
  return request({
    url: '/base/relateUnitDetail',
    method: 'post',
    data: data
  })
}

// 修改往来单位明细
export function updateRelateUnitDetail(data) {
  return request({
    url: '/base/relateUnitDetail',
    method: 'put',
    data: data
  })
}

// 删除往来单位明细
export function delRelateUnitDetail(id) {
  return request({
    url: '/base/relateUnitDetail/' + id,
    method: 'delete'
  })
}
